package com.ysb.searchserver;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SearchServer {

	public static void main(String ...args) throws Throwable, Throwable {
		SpringContextUtil.setApplicationContext(new ClassPathXmlApplicationContext("provider.xml"));
		((SearchProviderImpl)SpringContextUtil.getBean("searchProvider")).init();
		System.out.println("SearchServer is starting...");
		synchronized(SearchServer.class) {
			SearchServer.class.wait();
		}
	}
}
